<template>
  <div class="pages">
    <div class="box">
        <div>
            <el-input prefix-icon="el-icon-search" placeholder="请输入文件名称" style="width:220px;margin-right : 10px"></el-input>
            <el-button type="primary" icon="el-icon-search">查询</el-button>
            <el-button type="danger" icon="el-icon-delete">删除</el-button>
        </div>
        <div class="table-box">
            <el-table height="100%" border :data="fileList">
                <el-table-column type="selection" width="55" align="center"></el-table-column>
                <el-table-column label="文件名" align="center"></el-table-column>
                <el-table-column label="创建时间" align="center"></el-table-column>
                <el-table-column label="修改时间" align="center"></el-table-column>
                <el-table-column label="操作" align="center">
                    <template>
                        <a href="javascript:;">在线设计</a>
                        <a href="javascript:;">预览</a>
                        <a href="javascript:;">删除</a>
                    </template>
                </el-table-column>
            </el-table>
        </div>
        <div class="pagination-box">
                <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400">
    </el-pagination>
        </div>
    </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            fileList : [{}],
            currentPage : 1
        }
    },
    methods : {
        handleSizeChange(){

        },
        handleCurrentChange(){

        }
    }
}
</script>

<style scoped lang="scss">
.pages{
    width: 100%;
    height: calc(100vh - 84px);
    box-sizing: border-box;
    padding: 20px;
    background-color: #f5f7fa;
}
.box{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #FFF;
}
.table-box{
    margin-top: 20px;
    width: 100%;
    height: calc(100% - 100px);
}
.pagination-box{
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
a{
    color: #409eff;
    font-size: 12px;
    margin-right: 15px;
}
a:hover{
    text-decoration: underline;
}
</style>